﻿<%@ Page Title="Zupons RecentDeals" Language="C#" MasterPageFile="~/SiteMaster.master"
    AutoEventWireup="true" CodeFile="RecentDeal.aspx.cs" Inherits="Front_UserControl_RecentDeal" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <style type="text/css">
        .horizontalSliderView .TicksSlider
        {
            margin-top: 60px;
        }
        .field_set
        {
            float: left;
            width: 320px;
            height: 150px;
            margin-right: 10px;
            margin-bottom: 20px;
            border-color: #008800;
            border-width: 2px;
            border-style: solid;
            margin-top: 10px;
        }
        .details
        {
            width: 100%;
            float: left;
        }
        .details ul
        {
            list-style-image: none;
            list-style-type: none;
            margin: 0;
            padding: 10px;
        }
        .details ul label
        {
            font-weight: bold;
        }
        .photo-container
        {
            padding: 10px;
            width: 120px;
            float: left;
        }
        .data-container
        {
            width: auto;
            font-size: 10pt;
            font-family: Arial;
        }
        .style1
        {
            width: 194px;
        }
        .style2
        {
            width: 228px;
        }
        .style3
        {
            width: 149px;
        }
    </style>
    <div class="" id="main-content">
        <div class="body">
            <div class="body">
                <table id="main-body">
                    <tbody>
                        <tr>
                            <td class="content">
                                <div class="box-outer">
                                    <div class="box">
                                        <table cellpadding="0" cellspacing="0">
                                            <tr>
                                                <td>
                                                    Recent Deal For:
                                                    <asp:Label ID="LblCityName" runat="server" Font-Bold="True" ForeColor="#FF3300"></asp:Label>
                                                    <br />
                                                    <br />
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <asp:DataList ID="RecentDeal" runat="server" CellPadding="4" ForeColor="#333333"
                                                        RepeatColumns="2" DataKeyField="DealID">
                                                        <ItemTemplate>
                                                            <div class="field_set">
                                                                <b>
                                                                    <%#Eval("SellStartDate")%></b>
                                                                <div class="details">
                                                                    <div class="photo-container">
                                                                        <asp:ImageButton ID="Image1" Width="120px" Height="120px" runat="server" ImageUrl='<%# Eval("DealID", "Admin/ImageDisplay.aspx?DealID={0}")%>'
                                                                            OnClick="Image1_OnClick" CommandArgument='<%# Eval("DealID")%>' /><br />
                                                                        <br />
                                                                    </div>
                                                                    <div class="data-container">
                                                                        <ul>
                                                                            <li>
                                                                                <label>
                                                                                    Title:</label>
                                                                                <asp:LinkButton ID="btnName" runat="server" Text='<%# TrimDescription(Eval("Name") as string) %>'
                                                                                    OnClick="btnName_OnClick" CommandArgument='<%# Eval("DealID")%>'></asp:LinkButton>
                                                                            </li>
                                                                            <li>
                                                                                <label>
                                                                                    Price:</label>$
                                                                                <%#Eval("SellPrice")%>
                                                                            </li>
                                                                            <li>
                                                                                <label>
                                                                                    Value:</label>$
                                                                                <%#Eval("RegularPrice")%>
                                                                            </li>
                                                                            <li>
                                                                                <label>
                                                                                    Saving:</label>$
                                                                                <%#Eval("saving")%>
                                                                            </li>
                                                                            <li>
                                                                                <label>
                                                                                    Quantity Sold:
                                                                                </label>
                                                                                <%#Eval("QuantitySold")%></li>
                                                                            <br />
                                                                            <br />
                                                                        </ul>
                                                                    </div>
                                                                </div>
                                                            </div>
                                                        </ItemTemplate>
                                                    </asp:DataList>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="box-inner">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</asp:Content>
